﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class DeliveryRobot : Robot
    {
        string hours;
        public DeliveryRobot(string name)
            : base(name)
        {


        }
        public override void wrok()
        {
            Console.WriteLine("欢迎使用，{0}竭诚为您服务", name);
            Console.WriteLine(name + "已为您服务" + hours + "小时");

        }

    }
}
